.class public Lcom/a0soft/gphone/app2sd/main/TopWnd;
.super Landroid/app/TabActivity;
.source "TopWnd.java"

# interfaces
.implements Landroid/widget/TabHost$OnTabChangeListener;


# static fields
.field private static b:Ljava/lang/String;


# instance fields
.field private a:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 25
    const-class v0, Lcom/a0soft/gphone/app2sd/main/TopWnd;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/a0soft/gphone/app2sd/main/TopWnd;->b:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 17
    invoke-direct {p0}, Landroid/app/TabActivity;-><init>()V

    return-void
.end method

.method private a(I)V
    .locals 6
    .parameter

    .prologue
    const/high16 v5, 0x3f80

    .line 106
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/TopWnd;->getTabWidget()Landroid/widget/TabWidget;

    move-result-object v0

    .line 107
    invoke-virtual {v0}, Landroid/widget/TabWidget;->getTabCount()I

    move-result v1

    .line 113
    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_2

    .line 114
    invoke-virtual {v0, v2}, Landroid/widget/TabWidget;->getChildTabViewAt(I)Landroid/view/View;

    move-result-object v3

    .line 115
    if-eqz v3, :cond_0

    .line 116
    const v4, 0x7f0a0004

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    .line 117
    if-ne v2, p1, :cond_1

    const/high16 v3, -0x6000

    :goto_1
    invoke-virtual {p0, v5, v5, v5, v3}, Landroid/widget/TextView;->setShadowLayer(FFFI)V

    .line 113
    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 117
    :cond_1
    const v3, -0x5f000001

    goto :goto_1

    .line 119
    :cond_2
    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 10
    .parameter

    .prologue
    const v9, 0x7f0a0006

    const v8, 0x7f0a0004

    const v7, 0x7f030006

    const/4 v6, 0x0

    .line 30
    invoke-super {p0, p1}, Landroid/app/TabActivity;->onCreate(Landroid/os/Bundle;)V

    .line 31
    const v0, 0x7f030008

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/TopWnd;->setContentView(I)V

    .line 33
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/TopWnd;->getTabHost()Landroid/widget/TabHost;

    move-result-object v1

    .line 34
    invoke-virtual {v1, p0}, Landroid/widget/TabHost;->setOnTabChangedListener(Landroid/widget/TabHost$OnTabChangeListener;)V

    .line 36
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/TopWnd;->getTabWidget()Landroid/widget/TabWidget;

    move-result-object v2

    .line 38
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/TopWnd;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v3

    .line 41
    invoke-virtual {v3, v7, v2, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v4

    .line 42
    invoke-virtual {v4, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const/high16 v5, 0x7f05

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(I)V

    .line 43
    invoke-virtual {v4, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const v5, 0x7f02002f

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 44
    const-string v0, "0"

    invoke-virtual {v1, v0}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/TabHost$TabSpec;->setIndicator(Landroid/view/View;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    new-instance v4, Landroid/content/Intent;

    const-class v5, Lcom/a0soft/gphone/app2sd/main/OnPhoneWnd;

    invoke-direct {v4, p0, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v0, v4}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 48
    invoke-virtual {v3, v7, v2, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v4

    .line 49
    invoke-virtual {v4, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v5, 0x7f050001

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(I)V

    .line 50
    invoke-virtual {v4, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const v5, 0x7f020030

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 51
    const-string v0, "1"

    invoke-virtual {v1, v0}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/TabHost$TabSpec;->setIndicator(Landroid/view/View;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    new-instance v4, Landroid/content/Intent;

    const-class v5, Lcom/a0soft/gphone/app2sd/main/OnSDWnd;

    invoke-direct {v4, p0, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v0, v4}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 55
    invoke-virtual {v3, v7, v2, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v2

    .line 56
    invoke-virtual {v2, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v3, 0x7f050002

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    .line 57
    invoke-virtual {v2, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const v3, 0x7f02002e

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 58
    const-string v0, "2"

    invoke-virtual {v1, v0}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/TabHost$TabSpec;->setIndicator(Landroid/view/View;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/a0soft/gphone/app2sd/main/NoMoveWnd;

    invoke-direct {v2, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v0, v2}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 62
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/TopWnd;->a:Z

    .line 63
    return-void
.end method

.method protected onPause()V
    .locals 1

    .prologue
    .line 68
    invoke-super {p0}, Landroid/app/TabActivity;->onPause()V

    .line 70
    invoke-static {}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->h()Lcom/a0soft/gphone/app2sd/main/CoreApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->i()Lcom/a0soft/gphone/app2sd/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/a;->b()V

    .line 71
    return-void
.end method

.method protected onResume()V
    .locals 1

    .prologue
    .line 76
    invoke-super {p0}, Landroid/app/TabActivity;->onResume()V

    .line 78
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PersistentToast;->a(Landroid/content/Context;)V

    .line 80
    invoke-static {}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->h()Lcom/a0soft/gphone/app2sd/main/CoreApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->i()Lcom/a0soft/gphone/app2sd/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/a;->c()V

    .line 82
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/TopWnd;->getTabHost()Landroid/widget/TabHost;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TabHost;->getCurrentTab()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/a0soft/gphone/app2sd/main/TopWnd;->a(I)V

    .line 83
    return-void
.end method

.method public onTabChanged(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 88
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/main/TopWnd;->a:Z

    if-nez v0, :cond_0

    .line 100
    :goto_0
    return-void

    .line 95
    :cond_0
    :try_start_0
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    .line 97
    invoke-direct {p0, v0}, Lcom/a0soft/gphone/app2sd/main/TopWnd;->a(I)V
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 99
    :catch_0
    move-exception v0

    goto :goto_0
.end method
